package com.platform.dao;

import com.platform.entity.OrderEntity;
import com.platform.entity.excel.OrderExcel;
import com.platform.utils.Query;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 
 * 订单管理:商城购买订单
 * @author lipengjun
 * @email 939961241@qq.com
 * @date 2017-08-13 10:41:09
 */
public interface OrderDao extends BaseDao<OrderEntity> {

    List<OrderEntity> querySpcList(Query query);

    int querySpcTotal(Query query);

    int confirmSpc(OrderEntity entity);

    int updateStatus(@Param("orderNo") String orderNo, @Param("status")int status,@Param("logisticsno")String logisticsno);

    int updateStatusByDrawback(@Param("orderNo") String orderNo, @Param("status")int status);

    List<OrderExcel> queryListExcel(@Param("orderNo")String orderNo, @Param("userPhone")String userPhone, @Param("payStatus")Integer payStatus,
                                    @Param("status")Integer status, @Param("start")int start, @Param("size")Integer size, @Param("type")Integer type ,@Param("payWay")Integer payWay,@Param("merchantId")Integer merchantId);

    Map<String,Object> queryOrderMap(@Param("merchantId")Integer merchantId);
}
